package com.heriparid.slideshow.paging;

import com.heriparid.slideshow.R;

import android.graphics.Bitmap;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

public class PageContainer {

	private int index;		
	public View view;
	
	public PageContainer(int index) {
		this.index = index;		
	}
	
	public void setPageContent(String title, Bitmap bitmap){
		TextView titleView = (TextView) view.findViewById(R.id.tv_title);			
		ImageView imageView = (ImageView) view.findViewById(R.id.iv_image);	
		
		titleView.setText(title);
		imageView.setImageBitmap(bitmap);
	}
	
	public int getIndex() {
		return index;
	}
	
	public void setIndex(int index) {
		this.index = index;		
	}	
}
